home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Files / XTND 1.3.6 / Application Examples / CSource / Makefile < prev    next >
Encoding:
Makefile  |  1991-05-31  |  1.9 KB  |  59 lines  |  [TEXT/MPS ]

  1. #################################################################################
  2. #    File:    MakeFile for the TESample Application (The C Version)                #
  3. #    Target:    TESample                                                            #
  4. #################################################################################
  5.  
  6. ApplName = TESample            ### Whatever you like, but try to be descriptive
  7.  
  8. Creator = 'XTND'            ### This may be changed if you like
  9. Type = 'APPL'                ### This must not be changed
  10.  
  11. SymOptions = -sym off        ### Turn symbols on if you need to debug
  12. COptions = -r {SymOptions}    ### Use whatever you find useful
  13.  
  14. Sources = TESample.c ∂
  15.           TE_FileIO.c        ### For documentation only, not used by make
  16.  
  17. XTNDLibPath = :::XTND Headers:XTNDLibraries:    ### Change this if you reorganize the folder structure
  18. HeaderPath    = :::XTND Headers:XTNDCIncludes:    ### Change this if you reorganize the folder structure
  19.  
  20. Headers = TESample.h ∂
  21.           "{HeaderPath}"XTNDInterface.h
  22.  
  23.  
  24. ObjFiles = TESample.c.o ∂
  25.            TE_FileIO.c.o ∂
  26.            TESampleGlue.a.o ∂
  27.            "{XTNDLibPath}"XTNDInterfaceLib.o ∂
  28.            "{Libraries}"Runtime.o ∂
  29.            "{Libraries}"Interface.o                ### Object code files to be linked into the application
  30.  
  31.  
  32. ### Default Dependency/Build Rule
  33.  
  34. .c.o ƒ .c MacIncludes {Headers}
  35.     C {Default}.c {COptions} -r
  36.  
  37.  
  38. ### This copies the resources from TESample.r into the application. It deletes the
  39. ### old resource fork before adding the new resources.  This must be the first
  40. ### dependency for the target file, since it deletes all existing resources.
  41. ### It then sets the Creator and Type, and sets the bundle bit
  42.  
  43. {ApplName} ƒƒ TESample.r TESample.h MakeFile
  44.     Rez TESample.r -o {ApplName}
  45.     SetFile -a B {ApplName} -c {Creator} -t {Type}
  46.  
  47.  
  48. ### This links the object code into the application
  49.  
  50. {ApplName} ƒƒ {ObjFiles} MakeFile
  51.     Link {ObjFiles} {SymOptions} -o {ApplName}
  52.  
  53.  
  54. ### This dumps the precompiled headers into MacIncludes
  55.  
  56. MacIncludes ƒ MacIncludes.h
  57.     C MacIncludes.h {COptions} -o Null.c.o
  58.     delete -i Null.c.o
  59.